package com.microstation.util;

import com.microstation.common.AppConst;

import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.net.URLEncoder;
import java.util.Map;

public class MyCookie extends Cookie {

    public MyCookie(String name, String value) throws Exception {
        super(name, URLEncoder.encode(EnUtil.en(value), AppConst.CHARSET_UTF8));
    }
}
